﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RoutingAlgorithms
{
    class Link
    {
        private double capacity;
        public double Capacity
        {
            get { return capacity; }
            set { capacity = value; }
        }
        private double bandwidth;

        public double Bandwidth
        {
            get { return bandwidth; }
            set { bandwidth = value; }
        }
        private double cost;

        public double Cost
        {
            get { return cost; }
            set { cost = value; }
        }
        private Node source;

        public Node Source
        {
            get { return source; }
            set { source = value; }
        }
        private Node destination;

        public Node Destination
        {
            get { return destination; }
            set { destination = value; }
        }

        public Link(Node source, Node destination, double capacity)
        {
            this.source = source;
            this.destination = destination;
            this.capacity = capacity;
        }

        public Link(Link link)
        {
            this.capacity = link.capacity;
            this.bandwidth = link.bandwidth;
            this.cost = link.cost;
            this.destination = link.destination;
            this.source = link.source;
        }
    }
}
